proc echoItem(item:int) = echo item

proc forEach(items:openArray[int], action: proc(item:int)) =
  for item in items:
    action(item)

forEach([10,20,30], echoItem)
